package com.lhy.wcss.web.controller;

import com.lhy.wcss.common.JsonResponse;
import com.lhy.wcss.model.vo.StatusVO;
import com.lhy.wcss.service.StatusService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/studentData")
public class StatusController {

    private final Logger logger = LoggerFactory.getLogger( StatusController.class );

    @Autowired
    private StatusService statusService;

    @GetMapping("/status")
    @ResponseBody
    public JsonResponse statusData(){
        List<StatusVO> list0=statusService.statStatus();
        return JsonResponse.success(list0);
    }


}